<template>
  <div>
    <div class="item_box">
      <div>
        <b>用户</b>
        <p>{{ item.name }}</p>
      </div>
      <div>
        <b>ID</b>
        <p class="id">{{ item.id }}</p>
      </div>
      <div>
        <b>会员等级</b>
        <p>{{ item.grade }}</p>
      </div>
      <div>
        <b>标签组</b>
        <input type="text" placeholder="无标签组" list="nameList" />
        <datalist id="nameList">
          <option value="1组"></option>
          <option value="2组"></option>
          <option value="3组"></option>
        </datalist>
      </div>
      <div>
        <b>真实姓名</b>
        <p>{{ item.dname }}</p>
      </div>
      <div>
        <b>微信号</b>
        <p>{{ item.wx }}</p>
      </div>
      <div>
        <b>性别</b>
        <p>{{ item.nature }}</p>
      </div>
    </div>
    <button class="btn" @click="btn">返回列表</button>
  </div>
</template>

<script>
export default {
  created() {
    this.item = this.$route.query
    console.log(this.item)
  },
  data() {
    return {
      item: '',
    }
  },
  methods:{
    btn(){
        this.$router.push('/tabulation')
    }
  }
}
</script>

<style lang="scss" scoped>
.item_box {
  width: 300px;
  height: 300px;
  margin: 50px 0 0 50px;
  div {
    display: flex;
    margin-bottom: 20px;
    b {
      width: 100px;
      text-align: right;
      margin-right: 20px;
    }
  }
}
.id {
  color: blue;
}
.btn{
    width: 100px;
    height: 30px;
    margin-left: 100px;
    border: 1px solid gainsboro;
}
</style>
